Repository navigation
Conversation
…13056 Mechanical pass (cargo clippy --fix, reviewed per file): collapsible ifs as let-chains, is_multiple_of, chunks_exact -> as_chunks, sort_by_key, if-let for the single-pattern match in search.rs, useless into_iter, redundant closure, map_or -> is_none_or, elidable lifetimes, slice::from_ref over a lone clone. Hand fixes for the non-auto-fixable ones: - github_comments: CommentKind::from_str renamed to parse, matching the crate's existing parse convention (gate.rs, search.rs); the one caller updated. - shingles: rescore_fused takes &mut [FusedEntry] instead of &mut Vec<FusedEntry>; callers coerce unchanged. - trace_stats: hot_trace_files returns Vec<HotTraceFile> (new alias). - eval tests: the generated duplicate-key case tuple is now the DupKeyCase alias. - diagnostic_fixture tests: Stage::StageError renamed to Stage::Error (golden transcript updated to match), and the RNG seed literal regrouped to 0x0852_5602_0F01 (same value). No #[allow] added anywhere. Before: 37 distinct warning sites (25 in src, 12 in the integration tests). After: cargo clippy -p atlas-core --all-targets reports zero warnings; cargo test -p atlas-core 361 passed, 0 failed; cargo fmt clean.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 52 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Hold — Lane OA6 shepherd (archer), 2026-11-23. This shepherd was attempted under Drew's explicit approval in the main chat on 2026-11-23 11:00 CST ("Approve all the flag holds listed above", naming this PR). Creating the fresh verification worktree on the laptop ( Per the standing rule: no further git/build/test operations were run inside that checkout, it was left untouched as created, no independent clippy/test verification was run by this lane, and this PR was not merged. Full record on #13056 (hold comment c.7108209041). The PR remains open and author-verified (clippy 37 -> 0, 361 tests passed, Codex review clean); the shepherd remainder is unchanged for a pass that can execute in a checkout. |
Closes #13056
Clears every warning the #12919 verdict run recorded for atlas-core (plus a few of the same classes that drifted in since:
sort_by_keyin c8_fingerprint.rs, a complex tuple type in eval.rs tests, a lone-clone slice in trace_ingest.rs tests).Before → after (
cargo clippy -p atlas-core --all-targets, local rustup 1.99.0 toolchain, fresh target dir):cargo fmt -p atlas-core -- --checkclean.Mechanical fixes (via
cargo clippy --fix, then reviewed per file): 16 collapsibleifs → let-chains,%checks →is_multiple_of,chunks_exact(4)→as_chunks::<4>(),sort_by→sort_by_key, uselessinto_iterremoved, single-patternmatch→if let(search.rs),map_or→is_none_or, redundant closure removed, elidable lifetimes dropped,&[line.clone()]→slice::from_ref(&line), clone-on-reference removed, let-binding return inlined.Hand fixes (the ones the issue flagged as needing a human look):
github_comments.rs:CommentKind::from_str→ renamed toparse, the crate's existing convention for exactly this shape (GateStage::parse,BatchState::parse,SearchMode::parseall returnOption<Self>); its one caller updated.shingles.rs:rescore_fusednow takes&mut [FusedEntry]instead of&mut Vec<FusedEntry>; the body only ever used slice operations and callers coerce unchanged.trace_stats.rs:hot_trace_filesreturnsVec<HotTraceFile>(new documented alias for(PathBuf, (i64, u32, u32))).eval.rstests: the 5-tuple case annotation is now theDupKeyCasealias.diagnostic_fixture.rstests:Stage::StageError→Stage::Error(enum_variant_names); the deterministic-replay golden transcript spells the variant via{:?}and was updated to match. RNG seed literal regrouped0x8525_6020_F01→0x0852_5602_0F01(identical value).No
#[allow]added anywhere; no behaviour changes.Tests:
cargo test -p atlas-core— 361 passed, 0 failed (lib 166, all integration binaries), run locally on the same toolchain. Clippy was verified locally with a real clippy-driver (rustup 1.99.0), not CI-only; the crate pins 1.99.1 for nix builds, and CI remains the nix-side check.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.